import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

// 时间戳处理
Vue.filter('newTime', (val, str) => {
  const newD = new Date(val)
  const y = newD.getFullYear()
  const m = (newD.getMonth() + 1).toString().padStart(2, '0')
  const d = (newD.getDate()).toString().padStart(2, '0')
  return `${y}${str}${m}${str}${d}`
})

new Vue({
  render: h => h(App)
}).$mount('#app')
